<?php

namespace app\admin\model;

use think\Model;

class Tag extends Model
{
    public static function allTag($tagid=[])
    {
        $tag = [];
        foreach ($tagid as $val){
            $result = parent::get($val)->getData()['tname'];
            $tag[$val] = $result;
        }
        return $tag;
    }
}
